<?php

namespace api\web\model;

use think\Model;

class IndexModel extends Model
{
    protected $name = 'navigate';
    public function child(){
        return $this->hasOne(IndexModel::class,'parent_id','id');
    }
}